import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router'
import { createPinia } from 'pinia'
import {createPersistedState} from "pinia-persistedstate-plugin";
import locale from 'element-plus/dist/locale/zh-cn.js'
const pinia = createPinia()
const persist=createPersistedState()
const app = createApp(App)

import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css';
import axios from "axios";
axios.defaults.headers.post['Content-Type'] = 'application/json';
app.use(ElementPlus,{locale})
app.use(router)
app.use(pinia)
app.component('QuillEditor', QuillEditor)
pinia.use(persist)
app.mount("#app")

